package com.action;

import com.dao.ITabEmbeddedpipestatisticsDao;
import com.dao.ITabInstallitemdeductpercentageDao;
import com.opensymphony.xwork2.ModelDriven;
import com.po.TabEmbeddedpipestatistics;
import com.po.TabInstallitemdeductpercentage;

public class TabInstallitemdeductpercentageAction extends BaseAction implements ModelDriven<TabInstallitemdeductpercentage>
{

	TabInstallitemdeductpercentage form = new TabInstallitemdeductpercentage();
	public TabInstallitemdeductpercentage getModel(){
		return form;
	}
	private ITabInstallitemdeductpercentageDao tabInstallitemdeductpercentageDao;
	public void setTabInstallitemdeductpercentageDao(ITabInstallitemdeductpercentageDao tabInstallitemdeductpercentageDao){
		this.tabInstallitemdeductpercentageDao = tabInstallitemdeductpercentageDao;
	}

	public String findByList(){
		form.setPager_count(tabInstallitemdeductpercentageDao.findByCount(form));
		form.setTabiidplist(tabInstallitemdeductpercentageDao.findByList(form));
		return SUCCESS;
	}

	public String deleteObject(){
		tabInstallitemdeductpercentageDao.deleteObejct(form);
		findByList();
		return SUCCESS;
	}

	public String updateObject(){
		tabInstallitemdeductpercentageDao.updateObject(form);
		return "update";
	}

	

}
